<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">
    <c:if test="${sessionScope.Role eq 'S'}">
        <meta http-equiv="refresh" content="3;url=<c:out value="/student/console" />">
    </c:if>
    <c:if test="${sessionScope.Role eq 'T'}">
        <meta http-equiv="refresh" content="3;url=<c:out value="/teacher/console" />">
    </c:if>
    <c:if test="${sessionScope.Role eq 'P'}">
        <meta http-equiv="refresh" content="3;url=<c:out value="/parents/console" />">
    </c:if>
    
    <title>加载中</title>

    <style>
        .box {
            width: 200px;
            height: 200px;
            font-size: 40px;
            color: rgba(20, 169, 255, 0.5);
            padding: 1em;
            -webkit-transition: .3s color, .3s border;
            transition: .3s color, .3s border;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(0,-50%);
            -webkit-transform: translate(0,-50%);
        }

        [class*="loader-"] {
            display: inline-block;
            width: 1em;
            height: 1em;
            color: inherit;
            pointer-events: none;
        }

        .loader-c:before,
        .loader-c:after,
        .loader-c {
            border-radius: 50%;
            -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
            -webkit-animation: loader-c 1.8s infinite ease-in-out;
            animation: loader-c 1.8s infinite ease-in-out;
        }
        .loader-c {
            color: currentcolor;
            position: relative;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
            -webkit-animation-delay: -0.16s;
            animation-delay: -0.16s;
            top: -1em;
        }
        .loader-c:before {
            right: 100%;
            -webkit-animation-delay: -0.32s;
            animation-delay: -0.32s;
        }
        .loader-c:after {
            left: 100%;
        }
        .loader-c:before,
        .loader-c:after {
            content: '';
            display: block;
            position: absolute;
            top: 0;
            width: inherit;
            height: inherit;
        }
        @-webkit-keyframes loader-c {
            0%, 80%, 100% {
                box-shadow: 0 1em 0 -1em;
            }
            40% {
                box-shadow: 0 1em 0 -.2em;
            }
        }
        @keyframes loader-c {
            0%, 80%, 100% {
                box-shadow: 0 1em 0 -1em;
            }
            40% {
                box-shadow: 0 1em 0 -.2em;
            }
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="loader-c"></div>
    </div>
</body>
</html>